<template>
  <div class="gold-range">
    <table class="width100 font30 text-center" border="1" cellspacing="0">
      <thead class="bg-red">
        <tr>
          <th class="font35 white" colspan="3">
            <font>{{ props.rootItem.title }}</font>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item of props.rootItem.goldRanges" :key="item.id">
          <range-trd :trItem.sync="item" widthClass="width28" />
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script setup>
import RangeTrd from "./components/RangeTrd.vue";
import { defineProps } from "vue";
const props = defineProps({
  rootItem: {
    type: Object,
    default: () => {},
  },
});
</script>
